SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 59000: PARTY_TRANSACTIONS and ACCOUNT_TRANSACTIONS SAS® data set views in SAS® Anti-Money Laundering contain too few transaction dates

DetailsAboutRate It

When you run the transactions_prep.sas macro in SAS Anti-Money Laundering, the resulting PARTY_TRANSACTIONS and ACCOUNT_TRANSACTIONS SAS data set views do not contain all of the expected transaction dates. The macro incorrectly considers non-business days when calculating the date range for transaction data used in a scenario.

To work around the problem for account transactions, make the changes shown below to the transactions_prep.sas macro.  You can make similar changes to the macro to correct the dates for party transactions.

  • Incorrect code:
        data _null_;
           format currentday date9.;
           do i = 0 to &numdays - 1;
              currentday=input(put(&runasofdate,8.),yymmdd8.) - i;
              call symput('daydate'||left(trim(put(i,best32.))),'mst_prep.account_trans'||
                           kcompress(put(currentday,yymmdd10.),'-'));
           end;
        run;

 

  • Correct code:
      data _null_;
         currentday = input(put(&runasofdate,8.),yymmdd8.);
           do i = 0 to &numdays - 1;
            currentday_number = input(put(currentday,date_to_num.),8.);
            if currentday_number eq -1 then do;    /*non-business day*/
              currentday_prev = currentday;
              do until (currentday_number ne -1);
                currentday_prev = currentday_prev - 1;
                currentday_number = input(put(currentday_prev,date_to_num.),8.);
              end;
            end;
            current_business_day = input(put(currentday_number, num_to_date.),8.);
            call symput('daydate'||left(trim(put(i,best32.))),'mst_prep.account_trans'||put(current_business_day,yymmddn8.));
            currentday = current_business_day - 1;
         end;
      run;


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Anti-Money LaunderingMicrosoft Windows Server 2003 for x645.19.3 TS1M1
Microsoft Windows Server 20085.19.3 TS1M1
Microsoft Windows Server 2008 R25.16.19.3 TS1M19.4 TS1M0
Microsoft Windows Server 2008 for x645.16.19.3 TS1M19.4 TS1M0
Microsoft Windows XP Professional5.19.3 TS1M1
Windows 7 Enterprise 32 bit5.19.3 TS1M1
Windows 7 Enterprise x645.16.19.3 TS1M19.4 TS1M0
Windows 7 Home Premium 32 bit5.19.3 TS1M1
Windows 7 Home Premium x645.19.3 TS1M1
Windows 7 Professional 32 bit5.19.3 TS1M1
Windows 7 Professional x645.16.19.3 TS1M19.4 TS1M0
Windows 7 Ultimate 32 bit5.19.3 TS1M1
Windows 7 Ultimate x645.19.3 TS1M1
Windows Vista5.19.3 TS1M1
Windows Vista for x645.19.3 TS1M1
64-bit Enabled AIX5.16.19.3 TS1M19.4 TS1M0
64-bit Enabled Solaris5.16.19.3 TS1M19.4 TS1M0
HP-UX IPF5.16.19.3 TS1M19.4 TS1M0
Linux for x645.16.19.3 TS1M19.4 TS1M0
Solaris for x645.16.19.3 TS1M19.4 TS1M0
Microsoft Windows Server 2003 Standard Edition5.19.3 TS1M1
Microsoft Windows Server 2003 Enterprise Edition5.19.3 TS1M1
Microsoft Windows Server 2003 Datacenter Edition5.19.3 TS1M1
Microsoft® Windows® for x645.16.19.3 TS1M19.4 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.